import meizanchen from './meizanchen/index';

const map = Object.assign({}, meizanchen);

export const getData = (url, data) => {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      if (map[url]) {
        resolve(map[url](data));
      } else {
        resolve({});
      }
    }, 1000);
  });
};

export const mock = true;
